-include Makefile.options

all:
		cd src && make
		mv src/$(EXEC) .

libchess:
		cd src && make libchess
		mv src/$(MODULE_LIB) ./lib
clean:
		cd src && make clean
		rm -Rf $(FILES_TO_CLEAN)
		
distclean: clean
		cd src && make clean
		rm -Rf $(PROJECT_TARBALL)
		rm -Rf $(EXEC)
		rm -f ./lib/$(MODULE_LIB)

doxy:
		cd $(DOCDIR) && $(DOXYGEN) ./$(DOXYCONF)

tarball: distclean
		mkdir $(PROJECT_NAME)
		cp -R $(TARBALL_FILES) $(PROJECT_NAME)
		tar cvzf $(PROJECT_TARBALL) $(PROJECT_NAME)
		rm -Rf $(PROJECT_NAME)

